package com.ruoyi.project.system.submit.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class MiniIncomeData {
    private String fid;
    private double opIncome;
    private double propertyIncome;
    private double salaryIncome;
    private double transferIncome;
    private double sumIncome;
    private int userId;
    private int reportYear;
    private String operateTime;
    private double expense;
    private double avgIncome;

    public MiniIncomeData(String fid, double opIncome, double propertyIncome, double salaryIncome, double transferIncome, double sumIncome, int userId, int reportYear, String operateTime, double expense, double avgIncome) {
        this.fid = fid;
        this.opIncome = opIncome;
        this.propertyIncome = propertyIncome;
        this.salaryIncome = salaryIncome;
        this.transferIncome = transferIncome;
        this.sumIncome = sumIncome;
        this.userId = userId;
        this.reportYear = reportYear;
        this.operateTime = operateTime;
        this.expense = expense;
        this.avgIncome = avgIncome;
    }

    public MiniIncomeData(String fid, double sumIncome, int reportYear) {
        this.fid = fid;
        this.sumIncome = sumIncome;
        this.reportYear = reportYear;
    }
}
